package com.budwk.app.sqfw.enums;

import lombok.Getter;

/**
 * 下载文件名合集
 */
@Getter
public enum DownLoadFileNameEnum {

    /**
     * 安全排查整治表PDF
     */
    SAFETY_INVESTIGATE_RENOVATE("【安全排查整治表】合集", "dayingroad_safety_rectification_pdf"),
    /**
     * 沙文安全排查整治表PDF
     */
    SHAWEN_INVESTIGATE_RENOVATE("【安全排查整治表】合集", "shawentown_safety_rectification_pdf"),

    /**
     * 入户调查文件名称合集
     */
    //-----------------------开始----------------------
    SAFETY_PROMOTION("【安全宣传入户】台账", "SAFETY_PROMOTION"),
    SIX_TYPES_PERSON_LEDGER("【特殊人员巡查】台账", "SIX_TYPES_PERSON_LEDGER"),
    /**
     * 适用 入户调查、住户信息
     */
    SIX_KEYNOTE_TABLE_STATIS("【六类重点人员分类数据】统计", "SIX_KEYNOTE_TABLE_STATIS"),
    HOME_PROMOTION_LEDGER("【进家入户宣传】台账", "HOME_PROMOTION_LEDGER"),
    RUBBISH_CLASSIFICATION_PUBLICIZE("【垃圾分类宣传入户】台账", "RUBBISH_CLASSIFICATION_PUBLICIZE"),
    HOME_REGISTRATION_PDF("【进家入户宣传登记表】合集", "HOME_REGISTRATION_PDF"),
    //-----------------------结束 ----------------------

    /**
     * 垃圾分类文件名称合集
     */
    //-----------------------开始----------------------
    RUBBISH_CLASS_LIST("【垃圾分类清单】台账", "RUBBISH_CLASS_LIST"),
    RUBBISH_CLASS_PDF("【垃圾分类巡查】合集", "RUBBISH_CLASS_PDF"),
    //-----------------------结束 ----------------------

    /**
     * 住户信息文件名称合集
     */
    //-----------------------开始----------------------
    HOUSEHOLD_PERSONNEL_INFO("【住户人员信息表】台账", "HOUSEHOLD_PERSONNEL_INFO"),
    RETIRE_PERSONNEL("【国企退休人员】台账", "HOUSEHOLD_PERSONNEL_INFO"),
    NINE_TYPES_OF_PERSONNEL_PATROL("【九类人员巡查】台账", "NINE_TYPES_OF_PERSONNEL_PATROL"),
    SIX_CATEGORIES_OF_PERSONNEL("【六类人员】台账", "SIX_CATEGORIES_OF_PERSONNEL"),
    //-----------------------结束 ----------------------

    /**
     * 大营路文件名称合集（安全排查）
     */
    //-----------------------开始----------------------
    DYL_THREE_DETAILED("【安全隐患“三清单”】台账", "THREE_DETAILED"),
    DYL_INSPECTION_ON_PATROL("【消防安全巡查检查】台账", "INSPECTION_ON_PATROL"),
    DYL_THREE_DAN_ONE_SITE("【“三合一”场所】台账", "THREE_DAN_ONE_SITE"),
    DYL_GREAT_RISK_HIDDEN("附件1【消防安全重大风险隐患专项排查整治】统计", "GREAT_RISK_HIDDEN"),
    DYL_CATERING_INDUSTRY("【燃气、燃料排查情况汇总】台账", "CATERING_INDUSTRY"),
    DYL_SMALL_BUSINESS_STANDING_BOOK("【小型生产场所】台账", "SMALL_BUSINESS_STANDING_BOOK"),
    DYL_GAS_SAFETY_INS_STATISTICS_WEEKLY_REPORT("附件1【燃气安全排查统计周报表】统计", "GAS_SAFETY_INS_STATISTICS_WEEKLY_REPORT"),
    DYL_NIGHT_STALL_GAS_STANDING_BOOK("附件3【夜市摊点、游摊燃气】台账", "NIGHT_STALL_GAS_STANDING_BOOK"),
    DYL_URBAN_GAS_STANDING_BOOK("附件4【城镇燃气餐饮用户】台账", "URBAN_GAS_STANDING_BOOK"),
    DYL_SAFETY_RISK_REC_STANDING_BOOK("附件3【消防安全重大风险隐患专项排查整治】台账", "SAFETY_RISK_REC_STANDING_BOOK"),
    DYL_KEY_LOCATIONS_STANDING_BOOK("附件2【消防安全重大风险隐患专项排查整治】台账", "KEY_LOCATIONS_STANDING_BOOK"),
    DYL_PUBLIC_SECURITY_STANDING_BOOK("【社会治安重点风险场所】台账", "PUBLIC_SECURITY_STANDING_BOOK"),
    DYL_PUBLIC_SECURITY_STANDING_PDF("【社会治安重点风险场所】合集", "PUBLIC_SECURITY_STANDING_PDF"),
    //-----------------------结束 ----------------------
    /**
     * 威清门文件名称合集（安全排查）
     */
    //-----------------------开始----------------------
    WQL_NINE_SMALL_DAILY_INSPECTION("【九小场所日常排查】台账", "NINE_SMALL_DAILY_INSPECTION"),
    WQL_FIRE_SAFETY_INSPECTION("【今冬明春火灾防控“三清单】台账", "FIRE_SAFETY_INSPECTION"),
    WQL_FIRE_SAFETY_IMG("【今冬明春隐患整改照片】台账", "FIRE_SAFETY_IMG"),
    WQL_GAS_SAFETY_INSPECTION("附件1【燃气安全排查情况统计周报表】统计", "GAS_SAFETY_INSPECTION"),
    WQL_GAS_USAGE_AND_STORAGE("附件3【夜市摊点、游摊游贩燃气】台账", "GAS_USAGE_AND_STORAGE"),
    WQL_GAS_CATERING_USERS("附件4【城镇燃气餐饮用户】台账", "GAS_CATERING_USERS"),
    WQL_KEY_UNIT_OF_FIRE_SAFETY("【消防安全重点单位】台账", "KEY_UNIT_OF_FIRE_SAFETY"),
    WQL_IMPROVEMENT_PROGRESS_STATISTICS("【灾防控排查整治进度统计】台账", "IMPROVEMENT_PROGRESS_STATISTICS"),
    /**
     * pdf
     */
    WQL_EMERGENCY_INSPECTION("【应急巡查台账】合集", "TRAFFIC_EMERGENCY_INSPECTION"),
    WQL_TRAFFIC_EMERGENCY_INSPECTION("【交通应急巡查台账】合集", "TRAFFIC_EMERGENCY_INSPECTION"),
    WQL_THREE_IN_ONE_INSPECTION("【三合一应急巡查台账】合集", "THREE_IN_ONE_INSPECTION"),
    WQL_FIRE_SAFETY_IN_CATERING_ESTABLISHMENTS("【餐饮经营服务场所消防安全巡查台账】合集", "FIRE_SAFETY_IN_CATERING_ESTABLISHMENTS"),
    WQL_BOTTLED_GAS_USER_SAFETY_MANAGEMENT("【瓶装燃气用户安全管理巡查台账】合集", "BOTTLED_GAS_USER_SAFETY_MANAGEMENT"),
    WQL_WORK_SAFETY_RECTIFICATION_NOTICE("【重点场所隐患巡查台账】合集", "WORK_SAFETY_RECTIFICATION_NOTICE"),
    //-----------------------结束 ----------------------

    /**
     * 金阳文件下载名称合集（安全排查）
     */
    //-----------------------开始----------------------
    JY_VISITS_INSPECTION("【走访巡查】台账", "VISITS_INSPECTION"),
    JY_GAS_INSPECTION("【燃气检查】台账", "GAS_INSPECTION"),
    JY_GAS_RECTIFICATION("【燃气整改情况】台账", "GAS_RECTIFICATION"),
    JY_SAFETY_HIDDEN("【安全隐患】台账", "SAFETY_HIDDEN"),
    //-----------------------结束 ----------------------


    /**
     * 云潭问价下载名称合集（安全排查）
     */
    //-----------------------开始----------------------
    YT_RISK_HIDDEN_INSPECTION("【风险隐患排查治理】台账", "RISK_HIDDEN_INSPECTION"),
    YT_FIRE_SAFETY_INSPECTION("【消防安全巡查】台账", "FIRE_SAFETY_INSPECTION"),
    YT_SAFE_PRODUCT_INSPECTION("【安全生产检查】台账", "FIRE_SAFETY_INSPECTION"),
    YT_GAS_SAFETY_MANAGE_SUPERVISE("【瓶装液化石油气用户安全检查表】台账", "FIRE_SAFETY_INSPECTION"),
    YT_NINE_SMALL_ILLEGAL_RESIDENTS("【九小场所违规住人整改】台账", "NINE_SMALL_ILLEGAL_RESIDENTS"),
    YT_ARREARS_RIS_INSPECTION("【欠薪风险排查工作表】台账", "ARREARS_RIS_INSPECTION"),
    YT_NINE_HIDDEN("【“九小场所”隐患排查统计表】台账", "NINE_HIDDEN"),
    //-----------------------结束 ----------------------

    /**
     * 隐患排查整治清单（安全排查），适用花果园、油榨街
     */
    //-----------------------开始----------------------
    HIDDEN_DANGER_INVESTIGATE_RENOVATE("【隐患排查整治清单】台账", "HIDDEN_DANGER_INVESTIGATE_RENOVATE"),
    //-----------------------结束 ----------------------


    /**
     * 会议记录
     */
    //-----------------------开始----------------------
    MEETING_RECORD("【会议记录】台账", "MEETING_RECORD"),
    MEETING_RECORD_PDF("【会议记录】合集", "MEETING_RECORD_PDF"),
    //-----------------------结束 ----------------------

    /**
     * 活动列表
     */
    //-----------------------开始----------------------
    ACTIVITY_PERSON_INFO("【活动人员报名信息表】台账", "MEETING_RECORD"),
    //-----------------------结束 ----------------------

    /**
     * 世纪城养老服务站巡查
     */
    //---------------------开始-------------------------
    OLD_CARE_SERVICE_PATROL("【世纪城养老服务站巡查台账】", "OLD_CARE_SERVICE_PATROL_EXCEL"),
    OLD_CARE_SERVICE_PATROL_PDF("【世纪城养老服务站巡查记录】", "OLD_CARE_SERVICE_PATROL_PDF"),


    /**
     * 会议记录
     */
    //-----------------------开始----------------------
    MEETING_MINUTES_EXCEL("【会议记录】台账", "MEETING_MINUTES_EXCEL"),
    MEETING_MINUTES_DETAIL_EXCEL("【会议记录详细版】台账", "MEETING_MINUTES_DETAIL_EXCEL"),
    MEETING_ACTIVITIES_EXCEL("【活动记录】台账", "ACTIVITIES_EXCEL"),
    MEETING_VISITING_RECORDS_EXCEL("【来访记录】台账", "VISITING_RECORDS_EXCEL"),
    MEETING_DOCX_SUMMARY("【会议、活动、来访全部表单汇总】", "MEETING_DOCX_SUMMARY"),
    //-----------------------结束 ----------------------


    /**
     * 世纪城安全排查
     */
    //-----------------------开始----------------------
    CENTURY_CITY_BUILDING_HAZARDS("【”楼宇“安全生产问题隐患清单】", "CENTURY_CITY_BUILDING_HAZARDS"),
    CENTER_CITY_BUILDINGS_HIDDEN_DANGERS("【”住宅楼栋“安全生产问题隐患清单】", "CENTER_CITY_BUILDINGS_HIDDEN_DANGERS"),
    CENTER_CITY_SITE_HIDDEN_DANGERS("【”建筑工地“安全生产问题隐患清单】", "CENTER_CITY_SITE_HIDDEN_DANGERS"),
    CENTER_CITY_NINE_SMALL_PLACE("【”九小场所“安全生产问题隐患清单】", "CENTER_CITY_NINE_SMALL_PLACE"),
    CENTER_CITY_MULTIPLE_BUSINESS("【”多业态混合经营场所“安全生产问题隐患清单】", "CENTER_CITY_MULTIPLE_BUSINESS"),
    CENTER_CITY_PERSONNEL_DENSITY("【”人员密集场所“安全生产问题隐患清单】", "CENTER_CITY_PERSONNEL_DENSITY"),
    CENTER_CITY_KEY_LOCATION("【”重点场所“安全生产问题隐患清单】", "CENTER_CITY_KEY_LOCATION"),
    CENTER_CITY_FOOD_SAFE("【食品安全排查台账】", "CENTER_CITY_FOOD_SAFE"),
     CENTER_CITY_GAS_SAFE("【燃气安全管理监督检查表】", "CENTER_CITY_GAS_SAFE"),
    //CENTER_CITY_GAS_SAFE("CENTER_CITY_GAS_SAFE", "CENTER_CITY_GAS_SAFE"),

    A("“九小场所”安全隐患排查登记表", "九小场所"),
    B("“多业态混合经营场所”安全隐患排查登记表", "多业态混合经营场所"),
    C("“人员密集场所”安全隐患排查登记表", "人员密集场所"),
    D("“重点场所”安全隐患排查登记表", "重点场所"),
    E("“楼宇”安全隐患排查登记表", "楼宇"),
    F("“住宅楼栋”安全隐患排查登记表", "住宅楼栋"),
    H("“建筑工地”安全隐患排查登记表", "建筑工地"),
    G("餐饮服务日常巡查表", "九小场所-8"),
    K("食品销售日常巡查表", "九小场所-9"),
    L("学校食堂食品安全专项监督检查表", "人员密集场所-10"),


    //-----------------------结束 ----------------------

    ;


    private final String name;
    private final String code;

    DownLoadFileNameEnum(String name, String code) {
        this.name = name;
        this.code = code;
    }

    /**
     * 通过code获取名称
     *
     * @param code
     * @return
     */
    public static String getName(String code) {
        for (DownLoadFileNameEnum o : DownLoadFileNameEnum.values()) {
            if (o.getCode().equals(code)) {
                return o.getName();
            }
        }
        return null;
    }

    /**
     * 通过原有名称模糊获取更名后的名称
     *
     * @param originalName
     * @return
     */
    public static String getNameVagueByName(String originalName) {
        for (DownLoadFileNameEnum o : DownLoadFileNameEnum.values()) {
            if (o.getName().contains(originalName)) {
                return o.getName();
            }
        }
        return null;
    }
}
